package com.acegear.horizon.domain.events;


/**
 * Created by guoweike on 17/3/8.
 */
public class UserPostDeleteEvent extends BaseEvent {

  private Long postId;

  private String reason;

  private PostEventType eventType;

  public UserPostDeleteEvent() {
  }

  public UserPostDeleteEvent(Long postId, String reason, PostEventType eventType) {
    this.postId = postId;
    this.reason = reason;
    this.eventType = eventType;
    genEventId();
  }

  public Long getPostId() {
    return postId;
  }

  public void setPostId(Long postId) {
    this.postId = postId;
  }


  public PostEventType getEventType() {
    return eventType;
  }

  public void setEventType(PostEventType eventType) {
    this.eventType = eventType;
  }

  public String getReason() {
    return reason;
  }

  public void setReason(String reason) {
    this.reason = reason;
  }

  @Override
  public String routingKey() {
    return "horizon.domain.user.post.delete";
  }
}
